<template>
  <tab-bar>
    <tab-bar-item  path="/home">
      <template v-slot:icon >
        <img src="../../../assets/img/home/TabBar/首页.svg" alt="">
      </template>
      <template v-slot:icon-active>
        <img src="../../../assets/img/home/TabBar/首页-选中.svg" alt="">
      </template>
      <template v-slot:text>
        <div>首页</div>
      </template>
    </tab-bar-item>
    <tab-bar-item  path="/category">
      <template v-slot:icon>
        <img src="../../../assets/img/home/TabBar/分类.svg" alt="">
      </template>
      <template v-slot:icon-active>
        <img src="../../../assets/img/home/TabBar/分类-选中.svg" alt="">
      </template>
      <template v-slot:text>
        <div>分类</div>
      </template>
    </tab-bar-item>
    <tab-bar-item  path="/cart">
      <template v-slot:icon>
        <img src="../../../assets/img/home/TabBar/购物.svg" alt="">
      </template>
      <template v-slot:icon-active>
        <img src="../../../assets/img/home/TabBar/购物-选中.svg" alt="">
      </template>
      <template v-slot:text>
        <div>购物</div>
      </template>
    </tab-bar-item>
    <tab-bar-item  path="/profile">
      <template v-slot:icon>
        <img src="../../../assets/img/home/TabBar/我的.svg" alt="">
      </template>
      <template v-slot:icon-active>
        <img src="../../../assets/img/home/TabBar/我的-选中.svg" alt="">
      </template>
      <template v-slot:text>
        <div>我的</div>
      </template>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
  import TabBar from "../../common/tabbar/TabBar";
  import TabBarItem from "../../common/tabbar/TabBarItem";
  export default {
    name: "MainTabBar",
    components:{
      TabBar,
      TabBarItem
    }
  }
</script>

<style scoped>

</style>